package example;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import com.easyfun.easyframe.performance.consumer.PerformanceConsumer;

public class TestPerfConsumer
{

    public TestPerfConsumer()
    {
    }

    public static void main(String args[])
        throws Exception
    {
        List list = new ArrayList();
        list.addAll(Arrays.asList(new String[] {
            "--topic", "kafkatopic"
        }));
        list.addAll(Arrays.asList(new String[] {
            "--zookeeper", "192.168.0.250:2181"
        }));
        list.addAll(Arrays.asList(new String[] {
            "--from-latest"
        }));
        list.addAll(Arrays.asList(new String[] {
            "--threads", "10"
        }));
        PerformanceConsumer.main((String[])list.toArray(new String[0]));
    }
}

